package lab02.test09;

/**
 * Created by Lenovo on 2017/10/22.
 */
public class Student {
    //属性;“学号”、“班号”、“姓名”、“性别”、“年龄”
    String Sno;
    String Classnum;
    String Name;
    String Sex;
    int Age;
    //行为：获得学号”、“获得班号”、“获得性别”、“获得姓名”、“获得年龄”、“获得年龄”
    String getStudentnumber(){
        return  Sno;
    }
    String getClassnumber(){
        return Classnum;
    }
    String getName(){
        return  Name;
    }
    String getSex(){
        return Sex;
    }
    int getAge(){
        return Age;
    }
    public String toString(){
        String l="studentnumber:"+Sno+"\n classnumber:"+Classnum+
                "\n name:"+Name+"\n sex"+Sex+"\n age"+Age;
        return l;
    }
    //构造函数;
    //main函数;
}
